package com.cloud.cop;

import java.lang.reflect.Method;
import java.util.List;

/**
 * <pre>
 * 	   服务对象处理者
 * </pre>
 * @author mayh
 *
 */
public class CopServiceHandler {

	//处理对象
	private Object handler;
	
	//处理对象的方法
	private Method method;
	
	//处理对象的请求类对象
	private Class<? extends CopRequest> requestType = CopRequest.class;
	
	//处理会话是否需要session
	private boolean needInSession;
	
	//无需签名的字段列表
	private List<String> ignoreSignFieldNames;

	
	public Object getHandler() {
		return handler;
	}

	public void setHandler(Object handler) {
		this.handler = handler;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Class<? extends CopRequest> getRequestType() {
		return requestType;
	}

	public void setRequestType(Class<? extends CopRequest> requestType) {
		this.requestType = requestType;
	}

	public boolean isNeedInSession() {
		return needInSession;
	}

	public void setNeedInSession(boolean needInSession) {
		this.needInSession = needInSession;
	}

	public List<String> getIgnoreSignFieldNames() {
		return ignoreSignFieldNames;
	}

	public void setIgnoreSignFieldNames(List<String> ignoreSignFieldNames) {
		this.ignoreSignFieldNames = ignoreSignFieldNames;
	}
	
	public boolean isMethodHaveParameters(){
		return requestType!=null;
	}
}
